package cn.iune.platform.dictionary;

import java.text.ParseException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

import cn.iune.common.base.IBizDataIface;

public interface ITradeInfoService extends IBizDataIface {

	TradeInfo getByID(String fID);

	List<TradeInfo> getAll();

	List<TradeInfo> getRoots(String provider);

	List<TradeInfo> getChilds(String fParent);

	void delete(String fID);


	List<String> getRootIDs(String provider);

	List<String> getChildIDs(String fParent);

	//获取ids
	List<String> getIDsByParent(String fParent, String provider);

	//更新sortNo
	int updateSortNo(TradeInfo fs, String sortNo);

	//排序
	int sortGroupInfo(String parentID, List<String> ids/*,List<Integer> versions*/);

	List<TradeInfo> getChildren(String fParent);

	JSONObject save(JSONObject object) throws ParseException;

}